 package component;

import java.util.HashMap;
import java.util.Map;

public class Textarea {
	private String id;
	private String name;
	private String text;
	private String clazz;
	private String reg;
	private String tip;

	public Textarea(String id, String name, String text, String clazz,
			String reg, String tip) {
		super();
		this.id = id;
		this.name = name;
		this.text = text;
		this.clazz = clazz;
		this.reg = reg;
		this.tip = tip;
	}

	@Override
	public String toString() {
		Map<String, String> attries = new HashMap<String, String>();
		attries.put("id", id);
		attries.put("name", id);
		attries.put("class", clazz);
		attries.put("reg", reg);
		attries.put("tip", tip);
		Tag tag = new Tag("textarea");
		tag.setAttribute(attries);
		tag.setText(text);
		return tag.toString();
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getClazz() {
		return clazz;
	}

	public void setClazz(String clazz) {
		this.clazz = clazz;
	}

	public String getReg() {
		return reg;
	}

	public void setReg(String reg) {
		this.reg = reg;
	}

	public String getTip() {
		return tip;
	}

	public void setTip(String tip) {
		this.tip = tip;
	}
}
